﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ListIt.DAL
{
    [DataContract]
    public class JobSerializedClass
    {
        public JobSerializedClass(ActiveJob job)
        {
            CustomerName = job.CustomerName;
            PickupAddress = job.PickupAddress;
            SpecialInstruction = job.SpecialInstruction;
            DestinationAddress = job.DestinationAddress;
            MobileNo = job.MobileNo;
            TelNo = job.TelNo;
        }

        [DataMember]
        public string CustomerName { get; set; }

        [DataMember]
        public string PickupAddress { get; set; }

        [DataMember]
        public string SpecialInstruction { get; set; }

        [DataMember]
        public string DestinationAddress { get; set; }

        [DataMember]
        public string MobileNo { get; set; }

        [DataMember]
        public string TelNo { get; set; }
    }
}
